import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '得分',
    align:"center",
    dataIndex: 'score'
   },
   {
    title: '报名时间',
    align:"center",
    dataIndex: 'applyTime'
   },
   {
    title: '排名',
    align:"center",
    dataIndex: 'rank'
   },
   {
    title: '是否入围',
    align:"center",
    dataIndex: 'isShortlisted_dictText'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '得分',
    field: 'score',
    component: 'InputNumber',
    dynamicRules: ({model,schema}) => {
          return [
                 { required: true, message: '请输入得分!'},
          ];
     },
  },
  {
    label: '报名时间',
    field: 'applyTime',
    component: 'Input',
  },
  {
    label: '排名',
    field: 'rank',
    component: 'InputNumber',
  },
  {
    label: '是否入围',
    field: 'isShortlisted',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"yn"
     }
    dynamicRules: ({model,schema}) => {
          return [
                 { required: true, message: '请输入是否入围!'},
          ];
     },
  },
];
